﻿﻿//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :IndexController.cs
//        Description :首页控制器
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
namespace WebApplication1.DDD.Controllers
{
    public class IndexController: Controller
    {
        public override void Before()
        {
            base.Before();
        }
        public void Index(int jiage, int fangxing, int leixing, int p)
        {
            NFinal.Page page = new NFinal.Page(p, 10);
            var con = Models.ConnectionString_SQLSERVER.OpenConnection();
            var louPans = con.Page("select * from L_LouPan where (JiaGeCode & @jiage!=0 or @jiage=0) and (LeiXingCode & @leixing!=0 or @leixing=0) and (FangXingCode & @fangxing!=0 or @fangxing=0)", page);
            con.Close();
            View("Index.aspx");
        }
    }
}